/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package resource_builder;
import com.hitechbangla.fctu.base.base.BaseType;
import com.hitechbangla.fctu.base.base.GbadType;
import com.hitechbangla.fctu.base.radar.RadarType;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Sultan
 */
public class GbadTypeBuilder implements Serializable{
    public static void main(String a[])
    {
            GbadType gbadType1 = new GbadType("Dhaka", 20);
	    GbadType gbadType2 = new GbadType("Jessore", 30);
	    
	    GenericTypeBuilder<GbadType> genericTypeBuilder = new GenericTypeBuilder<>();
	    genericTypeBuilder.add(gbadType1,"gbadType.object");
	    genericTypeBuilder.add(gbadType2,"gbadType.object");
        
        /*List<BaseType> listBaseType = new ArrayList<>();
	listBaseType.add(new BaseType("Small", 32));
	listBaseType.add(new BaseType("Medium", 64));
	listBaseType.add(new BaseType("Big", 128));

	try {
	    FileOutputStream fileOutputStream = new FileOutputStream("src/resources/baseType.object");
	    try (ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream)) {
		objectOutputStream.writeObject(listBaseType);
		objectOutputStream.flush();
	    }
	} catch (Exception ex) {
	    //System.out.println(ex.toString());
	}*/
    }
    
}
